package com.zzl.car.controller;

import com.zzl.car.entity.Insurance;
import com.zzl.car.service.InsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ZdpInsuranceController {

    @Autowired
    private InsuranceService insuranceService;
    /*
    * 获取所有的保障服务信息 1:使用中
    * */
    @GetMapping("/getAllInsuranceInUsing")
    public List<Insurance> getAllInsuranceInUsing(){
        return insuranceService.getInsuranceInUsing();
    }
}
